package cn.lovecyy.mockjson.core.context;

import cn.hutool.core.bean.BeanUtil;
import cn.lovecyy.mockjson.core.domain.TypeConfig;
import cn.lovecyy.mockjson.core.gen.CommonRandomUtil;

import java.util.Map;

/**
 * CompanyContextGenerator
 *
 * @author Yakir
 */
public class CompanyContextGenerator implements ContextGenerator {

	@Override
	public Map<String, Object> generate(TypeConfig config) {
		return BeanUtil.beanToMap(CommonRandomUtil.randCompanyInfo());
	}

}
